using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace PHMEE.Controllers.AuditLogs
{
    /// <summary>
    /// 审计日志🚢🌞🌛✨
    /// </summary>
    [Route("api/auditlogs")]
    public class AuditLogController : PHMEEController
    {
        private readonly IAuditLogAppService auditLogAppService;

        public AuditLogController(IAuditLogAppService auditLogAppService)
        {
            this.auditLogAppService = auditLogAppService;
        }

        /// <summary>
        /// 审计日志分页查询
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpPost]
        [Route("GetPagedAuditLogs")]
        public Task<PagedResultDto<PagingAuditLogOutput>> GetListAsync(PagingAuditLogInput input)
        {
            return auditLogAppService.GetListAsync(input);
        }
    }
}